package creationpattern.prototype;

public class PrototypePatternDemo {

	public static void main(String[] args) {
		ShapeCache.loadCache();
		
		char c = '1';
		for(int i = 0; i < 3; i ++)
		{
			Shape clonedShape = (Shape)ShapeCache.getShape(String.valueOf(c));
			System.out.println("Shape: " + clonedShape.getType());
			c ++;
		}

	}
}
